<template>
	<div v-loading="loading">
		<div class="content-top">
			<span class="h1">项目管理</span>
			<span class="h2">数据导入</span>
		</div>
		<div class="contens" style="margin-top: 20px;">
			<div class="left-content " style="margin-bottom: 20px;">
				<div class="clearfix">
					<p class="fl titles">数据导入</p>
					<el-button type="danger" size="small" @click="house()" style='margin-top: 5px; margin-left: 10px;'>户主导入</el-button>
					<el-button type="primary" size="small" @click="land()" style='margin-top: 5px; margin-left: 10px;'>土地导入</el-button>
					<!--<el-button type="primary" size="small" @click="" style='margin-top: 5px; margin-left: 10px;'>坟山导入</el-button>-->
					<el-button type="primary" size="small" @click="numbs()" style='margin-top: 5px; margin-left: 10px;'>坟山编号导入</el-button>
					<el-button type="danger" size="small" @click="CemeteryHousTip()" style='margin-top: 5px; margin-left: 10px;'>导入坟山和户主</el-button>
					<el-button type="danger" size="small" @click="LandHousTip()" style='margin-top: 5px; margin-left: 10px;'>导入土地和户主</el-button>
          <label for="">分类查询:</label>
					<el-select v-model="code" filterable placeholder="请选择">
						<el-option v-for="item in codes" :key="item.value" :label="item.name" :value="item.value">
						</el-option>
					</el-select>
					<div class="fr">
					<label for="">工程项目:</label>
					<el-select v-model="project1" filterable placeholder="请选择" @change='chang2()'>
						<el-option v-for="item in gczmList" :key="item.ID" :label="item.Name" :value="item.ID">
						</el-option>
					</el-select>
					<span style="margin-left: 20px;">行政区域:</span>
					<el-cascader clearable :options="regions" filterable v-model="region" separator='-' change-on-select  @change='cascader1()'></el-cascader>
					</div>
				</div>
				<div class="fr">
						<el-input v-model="input" placeholder="请输入编号" style="width:217px;"></el-input>
						<el-button type="primary" @click='search()'>查询</el-button>
					</div>
			</div>
			<p style="margin: 15px 0; text-align: center;font-size: 18px; color: #909399;font-weight: 600;">导入记录</p>
			<el-table :data="Datas" border style="width: 100%">
				<el-table-column prop="BllCode" label="编号">
				</el-table-column>
				<el-table-column prop="CreateDate" label="导入时间">
				</el-table-column>
				<el-table-column prop="CreateMan" label="导入人">
				</el-table-column>
				<el-table-column label="修改">
					<template slot-scope="scope">
						<el-button v-if='scope.row.IsUpdate' type="success" size="small" @click="fnEdit(scope.row.ID,scope.row.UID,scope.row.ItemCode,scope.row.ItemID,scope.row.PointCode,scope.row.Amount,scope.row.RedInSq,scope.row.RedOutSq,scope.row.GreenAmount)">修改</el-button>
						<el-button type="danger" size="mini" @click="fnDel(scope.row.ID,scope.row.UID)">删除</el-button>
					</template>
					<!--<el-dropdown-item>
						<el-button type="success" size="small" @click="fnEdit()">修改</el-button>
					</el-dropdown-item>-->
					
				</el-table-column>
			</el-table>
			<div class="pages">
				<el-pagination small :current-page="pages" @current-change="handleCurrentChange" layout="prev, pager, next" :total="total" background >
				</el-pagination>
			</div>
		</div>
		<el-dialog title="户主导入" :visible.sync="lands1" width="570px">
			<div>
				<el-form :label-position="labelPosition" label-width="100px">
					<el-form-item label="工程项目" >
						<el-select v-model="proId" class='prosect' filterable placeholder="请选择" @change='change()' :disabled="disShow">
							<el-option  v-for="item in proList" :key="item.ID" :label="item.Name" :value="item.ID">
							</el-option>
						</el-select>
					</el-form-item>
					<el-form-item label="行政区域">
						<el-cascader :options="options" class='prosect' filterable change-on-select separator='-' v-model="selects"  @active-item-change="handleItemChange" @change="handleChange">
						</el-cascader>
					</el-form-item>
					<el-form-item label="上传文件">
						<div class="uploads">
							<el-upload class="upload-demo" :file-list="fileList" drag :action="importFileUrl" :on-exceed="handleExceed" :on-error="uploadError" :on-success="uploadSuccess" :before-upload="beforeAvatarUpload">
								<i class="el-icon-plus">点击上传</i>
								<div class="el-upload__tip" slot="tip">只能上传xls、xlsx文件，且不超过10MB</div>
							</el-upload>
							<a :href="Host+'Template/户主导入.xlsx'" class="mbxz" target="_blank">模板下载</a>
						</div>
					</el-form-item>
				</el-form>
			</div>
			<span slot="footer" class="dialog-footer">
			    <el-button @click="lands1 = false">取 消</el-button>
			    <el-button type="primary" @click="hosetrue()">确 定</el-button>
		    </span>
		</el-dialog>
		
		<el-dialog title="土地导入" :visible.sync="lands2" width="570px">
			<div>
				<el-form :label-position="labelPosition" label-width="100px">
					<el-form-item label="工程项目">
						<el-select v-model="proId" class='prosect' filterable placeholder="请选择" @change='change()'  :disabled="disShow">
							<el-option  v-for="item in proList" :key="item.ID" :label="item.Name" :value="item.ID">
							</el-option>
						</el-select>
					</el-form-item>
					<el-form-item label="行政区域">
						<el-cascader :options="options" class='prosect' filterable separator='-' v-model="selects"  @active-item-change="handleItemChange" change-on-select @change="handleChange">
						</el-cascader>
					</el-form-item>
					<el-form-item label="上传文件">
						<div class="uploads">
							<el-upload class="upload-demo" :file-list="fileList" drag :action="importFileUrl" :on-exceed="handleExceed" :on-error="uploadError" :on-success="uploadSuccess" :before-upload="beforeAvatarUpload">
								<i class="el-icon-plus">点击上传</i>
								<div class="el-upload__tip" slot="tip">只能上传xls、xlsx文件，且不超过10MB</div>
							</el-upload>
							<a :href="Host+'Template/土地导入.xlsx'" class="mbxz" target="_blank">模板下载</a>
						</div>
					</el-form-item>
				</el-form>
			</div>
			<span slot="footer" class="dialog-footer">
			    <el-button @click="lands2 = false">取 消</el-button>
			    <el-button type="primary" @click="landtrue()">确 定</el-button>
		    </span>
		</el-dialog>
		<el-dialog title="坟山编号导入" :visible.sync="lands3" width="570px">
			<div>
				<el-form :label-position="labelPosition" label-width="100px">
					<el-form-item label="工程项目">
						<el-select v-model="proId" class='prosect' filterable placeholder="请选择" @change='change()'  :disabled="disShow">
							<el-option  v-for="item in proList" :key="item.ID" :label="item.Name" :value="item.ID">
							</el-option>
						</el-select>
					</el-form-item>
					<el-form-item label="行政区域">
						<el-cascader :options="options" class='prosect' filterable separator='-' @active-item-change="handleItemChange" change-on-select v-model="selects" @change="handleChange">
						</el-cascader>
					</el-form-item>
					<el-form-item label="上传文件">
						<div class="uploads">
							<el-upload class="upload-demo" :file-list="fileList" drag :action="importFileUrl" :on-exceed="handleExceed" :on-error="uploadError" :on-success="uploadSuccess" :before-upload="beforeAvatarUpload">
								<i class="el-icon-plus">点击上传</i>
								
								<div class="el-upload__tip" slot="tip">只能上传xls、xlsx文件，且不超过10MB</div>
							</el-upload>
							<a :href="Host+'Template/坟山编号导入.xlsx'" class="mbxz" target="_blank">模板下载</a>
						</div>
					</el-form-item>
				</el-form>
			</div>
			<span slot="footer" class="dialog-footer">
			    <el-button @click="lands3 = false">取 消</el-button>
			    <el-button type="primary" @click="numbsTrue()">确 定</el-button>
		    </span>
		</el-dialog>
		<el-dialog title="坟山和户主导入" :visible.sync="lands4" width="570px">
			<div>
				<el-form :label-position="labelPosition" label-width="100px">
					<el-form-item label="工程项目">
						<el-select v-model="proId" class='prosect' filterable placeholder="请选择" @change='change()' :disabled="disShow">
							<el-option  v-for="item in proList" :key="item.ID" :label="item.Name" :value="item.ID">
							</el-option>
						</el-select>
					</el-form-item>
					<el-form-item label="行政区域">
						<el-cascader :options="options" class='prosect' filterable separator='-' @active-item-change="handleItemChange" change-on-select v-model="selects" @change="handleChange">
						</el-cascader>
					</el-form-item>
					<el-form-item label="上传文件">
						<div class="uploads">
							<el-upload class="upload-demo" :file-list="fileList" drag :action="importFileUrl" :on-exceed="handleExceed" :on-error="uploadError" :on-success="uploadSuccess" :before-upload="beforeAvatarUpload">
								<i class="el-icon-plus">点击上传</i>
								
								<div class="el-upload__tip" slot="tip">只能上传xls、xlsx文件，且不超过10MB</div>
							</el-upload>
							<a :href="Host+'Template/坟山和户主导入.xlsx'" class="mbxz" target="_blank">模板下载</a>
						</div>
					</el-form-item>
				</el-form>
			</div>
			<span slot="footer" class="dialog-footer">
			    <el-button @click="lands4 = false">取 消</el-button>
			    <el-button type="primary" @click="CemeteryHous()">确 定</el-button>
		    </span>
		</el-dialog>
		<el-dialog title="土地和户主导入" :visible.sync="lands5" width="570px">
			<div>
				<el-form :label-position="labelPosition" label-width="100px">
					<el-form-item label="工程项目">
						<el-select v-model="proId" class='prosect' filterable placeholder="请选择" @change='change()' :disabled="disShow">
							<el-option  v-for="item in proList" :key="item.ID" :label="item.Name" :value="item.ID">
							</el-option>
						</el-select>
					</el-form-item>
					<el-form-item label="行政区域">
						<el-cascader :options="options" class='prosect' filterable separator='-' @active-item-change="handleItemChange" change-on-select v-model="selects" @change="handleChange">
						</el-cascader>
					</el-form-item>
					<el-form-item label="上传文件">
						<div class="uploads">
							<el-upload class="upload-demo" :file-list="fileList" drag :action="importFileUrl" :on-exceed="handleExceed" :on-error="uploadError" :on-success="uploadSuccess" :before-upload="beforeAvatarUpload">
								<i class="el-icon-plus">点击上传</i>
								
								<div class="el-upload__tip" slot="tip">只能上传xls、xlsx文件，且不超过10MB</div>
							</el-upload>
							<a :href="Host+'Template/土地和户主导入.xlsx'" class="mbxz" target="_blank">模板下载</a>
						</div>
					</el-form-item>
				</el-form>
			</div>
			<span slot="footer" class="dialog-footer">
			    <el-button @click="lands5 = false">取 消</el-button>
			    <el-button type="primary" @click="LandHous()">确 定</el-button>
		    </span>
		</el-dialog>
		<el-dialog title="修改" :visible.sync="landsy" width="570px">
			<div>
				<el-form :label-position="labelPosition" label-width="100px">
					<el-form-item label="编号">
						<el-input v-model="form.ItemCode" placeholder="请输入编号"></el-input>
					</el-form-item>
					<el-form-item label="标准ID">
						<el-input v-model="form.ItemID" placeholder="请输入标准ID"></el-input>
					</el-form-item>
					<el-form-item label="桩号">
						<el-input v-model="form.PointCode" placeholder="请输入桩号"></el-input>
					</el-form-item>
					<el-form-item label="数量">
						<el-input v-model="form.Amount" placeholder="请输入数量"></el-input>
					</el-form-item>
					<el-form-item label="红线内">
						<el-input v-model="form.RedInSq" placeholder="请输入红线内"></el-input>
					</el-form-item>
					<el-form-item label="红线外">
						<el-input v-model="form.RedOutSq" placeholder="请输入红线外"></el-input>
					</el-form-item>
					<el-form-item label="青苗数量">
						<el-input v-model="form.GreenAmount" placeholder="请输入青苗数量"></el-input>
					</el-form-item>
				</el-form>
			</div>
			<span slot="footer" class="dialog-footer">
			    <el-button @click="landsy = false">取 消</el-button>
			    <el-button type="primary" @click="editsd()">确 定</el-button>
		    </span>
		</el-dialog>
	</div>
</template>
<script>
import api from "../../axios/api";
export default {
  name: "pay",
  data() {
    return {
		form:{
			ItemCode:'',
			ItemID:"",
			PointCode:"",
			Amount:'',
			RedInSq:"",
			RedOutSq:'',
			GreenAmount:''
		},
		landsy:false,
		region:[],
		regions:[],
      project1:'',
      gczmList:[],
      fileList: [],
      Host: api.template,
      loading: false,
      total: 1, //总页码
      pages: 1, //页码
      lands3: false,
      lands2: false,
      lands4: false, //坟山和户主导入弹窗
      lands5: false, //土地和户主导入弹窗
      options: [], //行政区域列表
      selects: [], //行政区域选项
      importFileUrl: "",
      labelPosition: "left",
      lands1: false,
      input: "",
      proList: [], //工程项目类别
      proId: "", //工程id
      Datas: [],
      num: "1",
      imageUrl: "",
      disShow: true,
      code:0,
      codes: [
        {
          value: 0,
          name: "所有"
        },
        {
          value: 1,
          name: "土地编号"
        },
        {
          value: 2,
          name: "坟山编号"
        }
      ],
      id:'',
      uid:''
    };
  },
  created() {
    
    this.zList()
    this.importFileUrl = api.files;
    this.getlistde();
  },
  methods: {
  	//修改
  	fnEdit(id,uid,ItemCode,ItemID,PointCode,Amount,RedInSq,RedOutSq,GreenAmount){
  		this.id = id
  		this.uid = uid
  		this.form.ItemCode = ItemCode
		this.form.ItemID = ItemID
		this.form.PointCode = PointCode
		this.form.Amount = Amount
		this.form.RedInSq = RedInSq
		this.form.RedOutSq = RedOutSq
		this.form.GreenAmount = GreenAmount
		this.landsy = true
  	},
  	editsd(){
  		this.$post(api.updatess,{
		  "ID": this.id,
		  "UID": this.uid,
		  "ItemCode": this.form.ItemCode,
		  "ItemID": this.form.ItemID,
		  "PointCode": this.form.PointCode,
		  "Amount": this.form.Amount,
		  "RedInSq": this.form.RedInSq,
		  "RedOutSq": this.form.RedOutSq,
		  "GreenAmount": this.form.GreenAmount
		}).then(res=>{
			if (res.isOK == true && res.state == 200) {
	            this.$message({
	              message: '修改成功',
	              type: "success"
	            });
	            this.landsy = false
	            this.importList();
	        } else {
	            this.landsy = false
	            this.$message.error(res.msg);
	        }
		})
  	},
    handleItemChange() {},
    handleExceed(files, fileList) {
      console.log(files);
      console.log(fileList);
    },
    //获取工程项目
    zList() {
      this.$post(api.getlistde).then(response => {
		if (response.isOK == true && response.state == 200) {
			this.gczmList = response.Data;
			this.project1 = this.gczmList[0] ? this.gczmList[0].ID : "";
			this.anonymousget1(this.project1);
		}else{
			this.$message.error(response.msg);
		}
		}).catch((error)=>{
		})
    },
    chang2() {
      this.regions = [];
      this.region = [];
      console.log(this.project1)
      if (this.project1) {
      	console.log(this.project1)
        this.anonymousget1(this.project1);
      }
    },
     //搜索计算
    cascader1() {
      this.RegionID = "";
      this.RegionID = this.region[this.region.length - 1];
    },
    //获取行政区域
    anonymousget1(idt) {
    	console.log(idt)
      this.$get(api.anonymousget + "/" + idt).then(response => {
      	console.log(response)
        if (response.data.isOK == true && response.data.state == 200) {
          for (var i = 0; i < response.data.Data.length; i++) {
            this.regions.push({
              label: response.data.Data[i].RegionName,
              value: response.data.Data[i].ID,
              checked: false,
              ParentID: response.data.Data[i].ParentID
            });
          }
          this.regions = this.$toTree(this.regions);
          this.region.push(this.regions[0].value);
          this.importList();
          console.log(this.regions)
        } else {
          this.$message.error(response.data.msg);
        }
      });
    },
    //获取工程项目
    getlistde() {
      this.$post(api.getlistde).then(response => {
        if (response.isOK == true && response.state == 200) {
          this.proList = response.Data;
          if (
            sessionStorage.ProjectID == "00000000-0000-0000-0000-000000000000"
          ) {
            this.disShow = false;
          } else {
            this.disShow = true;
            this.proId = sessionStorage.ProjectID;
            this.anonymousget();
          }
        }
      });
    },
    change() {
      this.options = [];
      this.anonymousget();
    },
    //获取行政区域
    anonymousget() {
      this.$get(api.anonymousget + "/" + this.proId).then(response => {
        if (response.data.isOK == true && response.data.state == 200) {
          for (var i = 0; i < response.data.Data.length; i++) {
            this.options.push({
              label: response.data.Data[i].RegionName,
              value: response.data.Data[i].ID,
              ParentID: response.data.Data[i].ParentID
            });
          }
          this.options = this.$toTree(this.options);
        }
      });
    },
    beforeAvatarUpload(file) {
      const extension = file.name.split(".")[1] === "xls";
      const extension2 = file.name.split(".")[1] === "xlsx";
      // const extension3 = file.name.split('.')[1] === 'doc'
      // const extension4 = file.name.split('.')[1] === 'docx'
      //				const extension5 = file.name.split('.')[1] === 'csv'
      const isLt2M = file.size / 1024 / 1024 < 10;
      if (!extension && !extension2) {
        this.$message.error("上传模板只能是 xls、xlsx格式!");
      }
      if (!isLt2M) {
        this.$message.error("上传模板大小不能超过 10MB!");
      }
      return extension || extension2 || extension3 || (extension4 && isLt2M);
    },
    uploadSuccess(response) {
      this.imageUrl = response.Data.filePaht.substring(
        2,
        response.Data.filePaht.length
      );
      this.$message({
        message: "上传成功",
        type: "success"
      });
    },
    // 上传错误
    uploadError(response) {},
    //坟山编号导入弹框
    numbs() {
      this.fileList = [];
      this.imageUrl = "";
      this.selects = [];
      this.lands3 = true;
    },
    //导入土地
    numbsTrue() {
    	if(this.proId==''||this.selects.length==0||this.imageUrl==''){
    		this.$message.error("参数不能为空");
            return;
    	}
      this.$post(api.gravecode, {
        filePath: this.imageUrl,
        ProjectID: this.proId,
        RegionID: this.selects[this.selects.length - 1]
      })
        .then(response => {
          if (response.isOK == true && response.state == 200) {
            this.$message({
              message: "导入了" + response.Data + "条",
              type: "success"
            });
            this.importList();
            this.lands3 = false;
          } else {
            this.lands3 = false;
            this.$message.error(response.msg);
          }
        })
        .catch(err => {
          this.lands3 = false;
          this.$message.error(response.msg);
        });
    },
    //户主导入弹框
    house() {
      this.fileList = [];
      this.imageUrl = "";
      this.selects = [];
      this.lands1 = true;
    },
    //土地弹框
    land() {
      this.fileList = [];
      this.imageUrl = "";
      this.selects = [];
      this.lands2 = true;
    },

    //导入土地
    landtrue() {
    	if(this.proId==''||this.selects.length==0||this.imageUrl==''){
    		this.$message.error("参数不能为空");
            return;
    	}
      this.$post(api.importland, {
        filePath: this.imageUrl,
        ProjectID: this.proId,
        RegionID: this.selects[this.selects.length - 1]
      })
        .then(response => {
          if (response.isOK == true && response.state == 200) {
            this.$message({
              message: "导入了" + response.Data + "条",
              type: "success"
            });
            this.importList();
            this.lands2 = false;
          } else {
            this.lands2 = false;
            this.$message.error(response.msg);
          }
        })
        .catch(err => {
          this.$message.error(response.msg);
        });
    },
    //确认户主导入
    hosetrue() {
    	if(this.proId==''||this.selects.length==0||this.imageUrl==''){
    		this.$message.error("参数不能为空");
            return;
    	}
      this.$post(api.importfrom, {
        filePath: this.imageUrl,
        ProjectID: this.proId,
        RegionID: this.selects[this.selects.length - 1]
      })
        .then(response => {
          if (response.isOK == true && response.state == 200) {
            this.$message({
              message: "导入了" + response.Data + "条",
              type: "success"
            });
            this.importList();
            this.lands1 = false;
          } else {
            this.lands1 = false;
            this.$message.error(response.msg);
          }
        })
        .catch(err => {
          this.$message.error(response.msg);
        });
    },
    look() {
      this.lands1 = true;
    },
    del(index) {
      this.Datas.splice(index, 1);
    },
    handleChange() {},
    //搜索
    search() {
      this.pages = 1;
      this.loading = true;
      this.$post(api.importList, {
        Para: {
          QueryKeyWord: this.input,
          Project: this.project1,
          code: this.code,
          RegionID:this.region[this.region.length-1]
        },
        PageSize: 10,
        PageIndex: this.pages - 1,
        OrderString: "",
        ToExcel: false
      })
        .then(response => {
          if (response.isOK == true && response.state == 200) {
            this.loading = false;
            this.Datas = response.Data.Data;

            this.total = response.Data.Items ? response.Data.Items : 1;
          } else {
            this.loading = false;
            this.$message.error(response.msg);
          }
        })
        .catch(err => {
          this.loading = false;
          this.$message.error(response.msg);
        });
    },
    //分页
    handleCurrentChange(val) {
      this.pages = val;
      this.loading = true;
      this.$post(api.importList, {
        Para: {
          QueryKeyWord: this.input,
          Project: this.project1,
          code: this.code,
          RegionID:this.region[this.region.length-1]
        },
        PageSize: 10,
        PageIndex: this.pages - 1,
        OrderString: "",
        ToExcel: false
      })
        .then(response => {
          if (response.isOK == true && response.state == 200) {
            this.loading = false;
            this.Datas = response.Data.Data;
            this.total = response.Data.Items ? response.Data.Items : 1;
          } else {
            this.loading = false;
            this.$message.error(response.msg);
          }
        })
        .catch(err => {
          this.loading = false;
          this.$message.error(response.msg);
        });
    },
    //获取列表
    importList() {
      this.loading = true;
      this.$post(api.importList, {
        Para: {
          QueryKeyWord: this.input,
          Project: this.project1,
          code: this.code,
          RegionID:this.region[this.region.length-1]
        },
        PageSize: 10,
        PageIndex: this.pages - 1,
        OrderString: "",
        ToExcel: false
      })
        .then(response => {
          if (response.isOK == true && response.state == 200) {
            this.loading = false;
            this.Datas = response.Data.Data;
            this.total = response.Data.Items ? response.Data.Items : 1;
          } else {
            this.loading = false;
            this.$message.error(response.msg);
          }
        })
        .catch(err => {
          this.loading = false;
          this.$message.error(response.msg);
        });
    },
    LandHousTip() {
      this.fileList = [];
      this.imageUrl = "";
      this.selects = [];
      this.lands5 = true;
    },
    //土地和户主导入
    LandHous() {
    	if(this.proId==''||this.selects.length==0||this.imageUrl==''){
    		this.$message.error("参数不能为空");
            return;
    	}
      this.$post(api.importlandfrom, {
        filePath: this.imageUrl,
        ProjectID: this.proId,
        RegionID: this.selects[this.selects.length - 1]
      })
        .then(response => {
          if (response.isOK == true && response.state == 200) {
            this.$message({
              message: "导入了" + response.Data + "条",
              type: "success"
            });
            this.importList();
            this.lands5 = false;
          } else {
            this.lands5 = false;
            this.$message.error(response.msg);
          }
        })
        .catch(err => {
          this.lands5 = false;
          this.$message.error(response.msg);
        });
    },
    CemeteryHousTip() {
      this.fileList = [];
      this.imageUrl = "";
      this.selects = [];
      this.lands4 = true;
    },
    //坟山和户主导入
    CemeteryHous() {
    	if(this.proId==''||this.selects.length==0||this.imageUrl==''){
    		this.$message.error("参数不能为空");
            return;
    	}
      this.$post(api.importgravefrom, {
        filePath: this.imageUrl,
        ProjectID: this.proId,
        RegionID: this.selects[this.selects.length - 1]
      })
        .then(response => {
          if (response.isOK == true && response.state == 200) {
            this.$message({
              message: "导入了" + response.Data + "条",
              type: "success"
            });
            this.importList();
            this.lands4 = false;
          } else {
            this.lands4 = false;
            this.$message.error(response.msg);
          }
        })
        .catch(err => {
          this.lands4 = false;
          this.$message.error(response.msg);
        });
    },
    //删除
    fnDel(id,uid){
    	this.loading = true
    	this.$post(api.deletesss,{
    		"ID": id,
  			"UID": uid
    	}).then(res=>{
    		
    		if (res.isOK == true && res.state == 200) {
	            this.$message({
	              message: '删除成功',
	              type: "success"
	            });
	            this.loading = false
	            this.importList();
	          } else {
	            this.loading = false
	            this.$message.error(res.msg);
	          }
    	})
    },
  }
};
</script>

<style>
.asds {
  position: relative;
  z-index: 9999;
}
.uploads .el-upload-dragger {
  width: 204px;
  height: 43px;
}
</style>